using System;

namespace BussinesLayerLogicTier
{
	/// <summary>
	/// Summary description for PoolObject.
	/// </summary>
	public class PoolObject
	{
		private object tag;
		private int ttl;
		private DateTime creationTime;
		
		public PoolObject()
		{
			creationTime = DateTime.Now;
		}
		
		public PoolObject(object tag, int ttl) : this()
		{
			this.tag = tag;
			this.ttl = ttl;
		}

		public object Tag
		{
			get { return tag; }
			set { tag = value; }
		}

		public int TTL
		{
			get { return ttl; }
			set { ttl = value; }
		}

		public DateTime CreationTime
		{
			get { return creationTime; }
			set { creationTime = value; }
		}
	}
}
